
<script src="./vue.js"></script>

<body>
     <div id="app">
      <button @click="shouwMyData">点击我</button>
      <p>{{msg}}</p >
     </div>
<script>
     var app=new Vue({
          el:"#app",
          data: {
               msg:'点击生成的出来的数据',
          },
          methods:{
               shouwMyData(){
                    console.log('12313213132')
                    this.msg="生成最新信息"            }
               }
          });
          </script>

          </body>